<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Caixa-1.0.2: Código-Fonte de src/main.C</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Gerado por Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="main.html"><span>Página&nbsp;Principal</span></a></li>
      <li><a href="annotated.html"><span>Estruturas&nbsp;de&nbsp;Dados</span></a></li>
      <li class="current"><a href="files.html"><span>Arquivos</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&nbsp;de&nbsp;Arquivos</span></a></li>
      <li><a href="globals.html"><span>Globais</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>src/main.C</h1>  </div>
</div>
<div class="contents">
<a href="main_8C.html">Vá para a documentação deste arquivo.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00002"></a>00002 <span class="preprocessor">#include &lt;<a class="code" href="principal_8h.html">principal.h</a>&gt;</span>
<a name="l00003"></a>00003 
<a name="l00004"></a>00004 <span class="keyword">using namespace </span>std;
<a name="l00005"></a>00005 
<a name="l00006"></a><a class="code" href="main_8C.html#a3c04138a5bfe5d72780bb7e82a18e627">00006</a> <span class="keywordtype">int</span> <a class="code" href="main_8C.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a> (<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv)
<a name="l00007"></a>00007     {
<a name="l00008"></a>00008     
<a name="l00009"></a>00009     <span class="keywordtype">string</span> teste(<span class="stringliteral">&quot;--import&quot;</span>);
<a name="l00010"></a>00010     <span class="keywordtype">int</span> importa;
<a name="l00011"></a>00011     Gtk::Main kit(&amp;argc, &amp;argv);
<a name="l00012"></a>00012 
<a name="l00013"></a>00013     <span class="comment">//cout &lt;&lt; argc &lt;&lt; endl;</span>
<a name="l00014"></a>00014     <span class="keywordflow">if</span>(argc == 2)
<a name="l00015"></a>00015         {
<a name="l00016"></a>00016         <span class="comment">//cout &lt;&lt; argv[0] &lt;&lt; endl;</span>
<a name="l00017"></a>00017         <span class="comment">//cout &lt;&lt; argv[1] &lt;&lt; endl;</span>
<a name="l00018"></a>00018         <span class="keywordflow">if</span> (teste.compare(argv[1]) == 0)
<a name="l00019"></a>00019             {
<a name="l00020"></a>00020             importa = 1;
<a name="l00021"></a>00021             }
<a name="l00022"></a>00022         <span class="keywordflow">else</span>
<a name="l00023"></a>00023             {
<a name="l00024"></a>00024             importa = 0;
<a name="l00025"></a>00025             }
<a name="l00026"></a>00026         }
<a name="l00027"></a>00027     <a class="code" href="classPRINCIPAL.html">PRINCIPAL</a> Caixa;
<a name="l00028"></a>00028     Caixa.<a class="code" href="classPRINCIPAL.html#a318d15167d185aba595a0003aea1309d">importa</a> = importa;
<a name="l00029"></a>00029     Gtk::Main::run(Caixa.<a class="code" href="classPRINCIPAL.html#a2629aa0647b4c6c1198d5d28ae77c6d9">Login</a>);
<a name="l00030"></a>00030 
<a name="l00031"></a>00031     <span class="keywordflow">return</span> 0;
<a name="l00032"></a>00032     }
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Gerado em Quarta, 9 de Maio de 2012 21:34:45 para Caixa-1.0.2 por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
